//
//  ShoppingGoodsRequest.m
//  EasyToo
//
//  Created by zhengzhe on 13-9-15.
//
//

#import "ShoppingGoodsRequest.h"

@implementation ShoppingGoodsRequest

- (id)initWithCategoryId:(NSString*)categoryId Delegate:(id<ServerCommunicationDelegate>)delegate
{
    self = [super init];
    if (self) {
        
        self.requestName = @"ShoppingGoodsRequest";
        self.delegate = delegate;
        
        [self.headerJsonDict setObject:@"012001" forKey:@"TranCode"];
        [self.headerJsonDict setObject:@"20" forKey:@"TxRecordNum"];
        
        [self.bodyJsonDict setObject:[NSNumber numberWithInteger:1] forKey:@"startId"];
        [self.bodyJsonDict setObject:@"3" forKey:@"orderBy"];
        [self.bodyJsonDict setObject:@"desc" forKey:@"sequence"];
        [self.bodyJsonDict setObject:categoryId forKey:@"cateId"];
        [self.bodyJsonDict setObject:[NSNumber numberWithInteger:10] forKey:@"pageNum"];

        [self buildJsonRequest];
    }
    return self;
}

//"startId": 1,
//"orderBy": "3",
//"sequence": "desc",
//"cateId": "10000139",
//"andriod_transcode": "012001",
//"pageNum": 10

- (void)dealloc
{
    [super dealloc];
}

@end
